package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2020-02-24
 */
@TableName("portal")
@Data
public class VpnAccountList extends Model<VpnAccountList> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户名称
     */
    @TableField("username")
    private String accountName;

    @TableField("password")
    private String password;

    @TableField("createtime")
    private String createTime;

    @TableField("loginip")
    private String loginIp;

    @TableField("LoginTry")
    private Integer loginTry;
    /**
     * 0 -> EndUser,1-> OM User,2-> TrialEndUser
     */
    @TableField("UserType")
    private Integer userType;

    /**
     * 账户状态
     * 0 Disable ; 1  Init ; 2 SMS Try Fail ; 3 Login Try Fail ; 4 Active'
     */
    private String status;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "VpnAccountList{" +
        "id=" + id +
        ", accountName=" + accountName +
        ", status=" + status +
        "}";
    }
}
